<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>GtkMenuBar</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.74.0">
<link rel="home" href="index.html" title="GTK+ Reference Manual">
<link rel="up" href="MenusAndCombos.html" title="Menus, Combo Box, Toolbar">
<link rel="prev" href="GtkMenu.html" title="GtkMenu">
<link rel="next" href="GtkMenuItem.html" title="GtkMenuItem">
<meta name="generator" content="GTK-Doc V1.11 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
<link rel="part" href="gtk.html" title="Part I. GTK+ Overview">
<link rel="part" href="gtkbase.html" title="Part II. GTK+ Core Reference">
<link rel="part" href="gtkobjects.html" title="Part III. GTK+ Widgets and Objects">
<link rel="chapter" href="ch01.html" title="Object Hierarchy">
<link rel="chapter" href="ch02.html" title="Widget Gallery">
<link rel="chapter" href="WindowWidgets.html" title="Windows">
<link rel="chapter" href="DisplayWidgets.html" title="Display Widgets">
<link rel="chapter" href="ButtonWidgets.html" title="Buttons and Toggles">
<link rel="chapter" href="NumericEntry.html" title="Numeric/Text Data Entry">
<link rel="chapter" href="TextWidgetObjects.html" title="Multiline Text Editor">
<link rel="chapter" href="TreeWidgetObjects.html" title="Tree, List and Icon Grid Widgets">
<link rel="chapter" href="MenusAndCombos.html" title="Menus, Combo Box, Toolbar">
<link rel="chapter" href="Actions.html" title="Action-based menus and toolbars">
<link rel="chapter" href="SelectorWidgets.html" title="Selectors (File/Font/Color/Input Devices)">
<link rel="chapter" href="LayoutContainers.html" title="Layout Containers">
<link rel="chapter" href="Ornaments.html" title="Ornaments">
<link rel="chapter" href="ScrollingWidgets.html" title="Scrolling">
<link rel="chapter" href="Printing.html" title="Printing">
<link rel="chapter" href="MiscObjects.html" title="Miscellaneous">
<link rel="chapter" href="AbstractObjects.html" title="Abstract Base Classes">
<link rel="chapter" href="PlugSocket.html" title="Cross-process Embedding">
<link rel="chapter" href="SpecialObjects.html" title="Special-purpose features">
<link rel="chapter" href="RecentDocuments.html" title="Recently Used Documents">
<link rel="chapter" href="Builder.html" title="Interface builder">
<link rel="chapter" href="DeprecatedObjects.html" title="Deprecated">
<link rel="part" href="migrating.html" title="Part IV. Migrating from Previous Versions of GTK+">
<link rel="chapter" href="gtk-migrating-checklist.html" title="Migration Checklist">
<link rel="chapter" href="gtk-migrating-GtkFileChooser.html" title="Migrating from GtkFileSelection to GtkFileChooser">
<link rel="chapter" href="gtk-migrating-GtkAction.html" title="Migrating from old menu and toolbar systems to GtkAction">
<link rel="chapter" href="gtk-migrating-GtkComboBox.html" title="Migrating from GtkOptionMenu and GtkCombo to GtkComboBox and GtkComboBoxEntry">
<link rel="chapter" href="gtk-migrating-GtkIconView.html" title="Migrating from GnomeIconList to GtkIconView">
<link rel="chapter" href="gtk-migrating-GtkAboutDialog.html" title="Migrating from GnomeAbout to GtkAboutDialog">
<link rel="chapter" href="gtk-migrating-GtkColorButton.html" title="Migrating from GnomeColorPicker to GtkColorButton">
<link rel="chapter" href="gtk-migrating-GtkAssistant.html" title="Migrating from GnomeDruid to GtkAssistant">
<link rel="chapter" href="gtk-migrating-GtkRecentChooser.html" title="Migrating from EggRecent to GtkRecentChooser">
<link rel="chapter" href="gtk-migrating-GtkLinkButton.html" title="Migrating from GnomeHRef to GtkLinkButton">
<link rel="chapter" href="gtk-migrating-GtkBuilder.html" title="Migrating from libglade to GtkBuilder">
<link rel="chapter" href="gtk-migrating-tooltips.html" title="Migrating from GtkTooltips to GtkTooltip">
<link rel="part" href="pt05.html" title="Part V. GTK+ Tools">
<link rel="glossary" href="glossary.html" title="Glossary">
<link rel="index" href="api-index-full.html" title="Index of all symbols">
<link rel="index" href="api-index-deprecated.html" title="Index of deprecated symbols">
<link rel="index" href="api-index-2-2.html" title="Index of new symbols in 2.2">
<link rel="index" href="api-index-2-4.html" title="Index of new symbols in 2.4">
<link rel="index" href="api-index-2-6.html" title="Index of new symbols in 2.6">
<link rel="index" href="api-index-2-8.html" title="Index of new symbols in 2.8">
<link rel="index" href="api-index-2-10.html" title="Index of new symbols in 2.10">
<link rel="index" href="api-index-2-12.html" title="Index of new symbols in 2.12">
<link rel="index" href="api-index-2-14.html" title="Index of new symbols in 2.14">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
<tr valign="middle">
<td><a accesskey="p" href="GtkMenu.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="MenusAndCombos.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">GTK+ Reference Manual</th>
<td><a accesskey="n" href="GtkMenuItem.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts">
<a href="#GtkMenuBar.synopsis" class="shortcut">Top</a>
                 | 
                <a href="#GtkMenuBar.description" class="shortcut">Description</a>
                 | 
                <a href="#GtkMenuBar.object-hierarchy" class="shortcut">Object Hierarchy</a>
                 | 
                <a href="#GtkMenuBar.implemented-interfaces" class="shortcut">Implemented Interfaces</a>
                 | 
                <a href="#GtkMenuBar.properties" class="shortcut">Properties</a>
                 | 
                <a href="#GtkMenuBar.style-properties" class="shortcut">Style Properties</a>
</td></tr>
</table>
<div class="refentry" lang="en">
<a name="GtkMenuBar"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="GtkMenuBar.top_of_page"></a>GtkMenuBar</span></h2>
<p>GtkMenuBar — A subclass widget for GtkMenuShell which holds GtkMenuItem widgets</p>
</td>
<td valign="top" align="right"><img src="menubar.png"></td>
</tr></table></div>
<div class="refsynopsisdiv">
<a name="GtkMenuBar.synopsis"></a><h2>Synopsis</h2>
<pre class="synopsis">

#include &lt;gtk/gtk.h&gt;

                    <a class="link" href="GtkMenuBar.html#GtkMenuBar-struct" title="GtkMenuBar">GtkMenuBar</a>;
<a class="link" href="GtkWidget.html" title="GtkWidget">GtkWidget</a>*          <a class="link" href="GtkMenuBar.html#gtk-menu-bar-new" title="gtk_menu_bar_new ()">gtk_menu_bar_new</a>                    (void);
#define             <a class="link" href="GtkMenuBar.html#gtk-menu-bar-append" title="gtk_menu_bar_append()">gtk_menu_bar_append</a>                 (menu,child)
#define             <a class="link" href="GtkMenuBar.html#gtk-menu-bar-prepend" title="gtk_menu_bar_prepend()">gtk_menu_bar_prepend</a>                (menu,child)
#define             <a class="link" href="GtkMenuBar.html#gtk-menu-bar-insert" title="gtk_menu_bar_insert()">gtk_menu_bar_insert</a>                 (menu,child,pos)
enum                <a class="link" href="GtkMenuBar.html#GtkPackDirection" title="enum GtkPackDirection">GtkPackDirection</a>;
void                <a class="link" href="GtkMenuBar.html#gtk-menu-bar-set-pack-direction" title="gtk_menu_bar_set_pack_direction ()">gtk_menu_bar_set_pack_direction</a>     (<a class="link" href="GtkMenuBar.html" title="GtkMenuBar">GtkMenuBar</a> *menubar,
                                                         <a class="link" href="GtkMenuBar.html#GtkPackDirection" title="enum GtkPackDirection">GtkPackDirection</a> pack_dir);
<a class="link" href="GtkMenuBar.html#GtkPackDirection" title="enum GtkPackDirection">GtkPackDirection</a>    <a class="link" href="GtkMenuBar.html#gtk-menu-bar-get-pack-direction" title="gtk_menu_bar_get_pack_direction ()">gtk_menu_bar_get_pack_direction</a>     (<a class="link" href="GtkMenuBar.html" title="GtkMenuBar">GtkMenuBar</a> *menubar);
void                <a class="link" href="GtkMenuBar.html#gtk-menu-bar-set-child-pack-direction" title="gtk_menu_bar_set_child_pack_direction ()">gtk_menu_bar_set_child_pack_direction</a>
                                                        (<a class="link" href="GtkMenuBar.html" title="GtkMenuBar">GtkMenuBar</a> *menubar,
                                                         <a class="link" href="GtkMenuBar.html#GtkPackDirection" title="enum GtkPackDirection">GtkPackDirection</a> child_pack_dir);
<a class="link" href="GtkMenuBar.html#GtkPackDirection" title="enum GtkPackDirection">GtkPackDirection</a>    <a class="link" href="GtkMenuBar.html#gtk-menu-bar-get-child-pack-direction" title="gtk_menu_bar_get_child_pack_direction ()">gtk_menu_bar_get_child_pack_direction</a>
                                                        (<a class="link" href="GtkMenuBar.html" title="GtkMenuBar">GtkMenuBar</a> *menubar);
</pre>
</div>
<div class="refsect1" lang="en">
<a name="GtkMenuBar.object-hierarchy"></a><h2>Object Hierarchy</h2>
<pre class="synopsis">
  <a
href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject"
>GObject</a>
   +----<a
href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GInitiallyUnowned"
>GInitiallyUnowned</a>
         +----<a class="link" href="GtkObject.html" title="GtkObject">GtkObject</a>
               +----<a class="link" href="GtkWidget.html" title="GtkWidget">GtkWidget</a>
                     +----<a class="link" href="GtkContainer.html" title="GtkContainer">GtkContainer</a>
                           +----<a class="link" href="GtkMenuShell.html" title="GtkMenuShell">GtkMenuShell</a>
                                 +----GtkMenuBar
</pre>
</div>
<div class="refsect1" lang="en">
<a name="GtkMenuBar.implemented-interfaces"></a><h2>Implemented Interfaces</h2>
<p>
GtkMenuBar implements
 AtkImplementorIface and  <a class="link" href="gtk-gtkbuildable.html#GtkBuildable">GtkBuildable</a>.</p>
</div>
<div class="refsect1" lang="en">
<a name="GtkMenuBar.properties"></a><h2>Properties</h2>
<pre class="synopsis">
  "<a class="link" href="GtkMenuBar.html#GtkMenuBar--child-pack-direction" title='The "child-pack-direction" property'>child-pack-direction</a>"     <a class="link" href="GtkMenuBar.html#GtkPackDirection" title="enum GtkPackDirection">GtkPackDirection</a>      : Read / Write
  "<a class="link" href="GtkMenuBar.html#GtkMenuBar--pack-direction" title='The "pack-direction" property'>pack-direction</a>"           <a class="link" href="GtkMenuBar.html#GtkPackDirection" title="enum GtkPackDirection">GtkPackDirection</a>      : Read / Write
</pre>
</div>
<div class="refsect1" lang="en">
<a name="GtkMenuBar.style-properties"></a><h2>Style Properties</h2>
<pre class="synopsis">
  "<a class="link" href="GtkMenuBar.html#GtkMenuBar--s-internal-padding" title='The "internal-padding" style property'>internal-padding</a>"         <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a>                  : Read
  "<a class="link" href="GtkMenuBar.html#GtkMenuBar--s-shadow-type" title='The "shadow-type" style property'>shadow-type</a>"              <a class="link" href="gtk-Standard-Enumerations.html#GtkShadowType" title="enum GtkShadowType">GtkShadowType</a>         : Read
</pre>
</div>
<div class="refsect1" lang="en">
<a name="GtkMenuBar.description"></a><h2>Description</h2>
<p>
The <a class="link" href="GtkMenuBar.html" title="GtkMenuBar"><span class="type">GtkMenuBar</span></a> is a subclass of <a class="link" href="GtkMenuShell.html" title="GtkMenuShell"><span class="type">GtkMenuShell</span></a> which contains one to many <a class="link" href="GtkMenuItem.html" title="GtkMenuItem"><span class="type">GtkMenuItem</span></a>. The result is a standard menu bar which can hold many menu items. <a class="link" href="GtkMenuBar.html" title="GtkMenuBar"><span class="type">GtkMenuBar</span></a> allows for a shadow type to be set for aesthetic purposes. The shadow types are defined in the <span class="type">gtk_menu_bar_set_shadow_type</span> function.
</p>
</div>
<div class="refsect1" lang="en">
<a name="GtkMenuBar.details"></a><h2>Details</h2>
<div class="refsect2" lang="en">
<a name="GtkMenuBar-struct"></a><h3>GtkMenuBar</h3>
<pre class="programlisting">typedef struct _GtkMenuBar GtkMenuBar;</pre>
<p>
The <a class="link" href="GtkMenuBar.html" title="GtkMenuBar"><span class="type">GtkMenuBar</span></a> struct contains the following fields. (These fields should be considered read-only.  They should never be set by an application.)
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="gtk-menu-bar-new"></a><h3>gtk_menu_bar_new ()</h3>
<pre class="programlisting"><a class="link" href="GtkWidget.html" title="GtkWidget">GtkWidget</a>*          gtk_menu_bar_new                    (void);</pre>
<p>
Creates the new <a class="link" href="GtkMenuBar.html" title="GtkMenuBar"><span class="type">GtkMenuBar</span></a>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the <a class="link" href="GtkMenuBar.html" title="GtkMenuBar"><span class="type">GtkMenuBar</span></a>
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="gtk-menu-bar-append"></a><h3>gtk_menu_bar_append()</h3>
<pre class="programlisting">#define gtk_menu_bar_append(menu,child)	    gtk_menu_shell_append  ((GtkMenuShell *)(menu),(child))
</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">gtk_menu_bar_append</code> is deprecated and should not be used in newly-written code. Use <a class="link" href="GtkMenuShell.html#gtk-menu-shell-append" title="gtk_menu_shell_append ()"><code class="function">gtk_menu_shell_append()</code></a> instead.</p>
</div>
<p>
Adds a new <a class="link" href="GtkMenuItem.html" title="GtkMenuItem"><span class="type">GtkMenuItem</span></a> to the end of the GtkMenuBar
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>menu</code></em> :</span></p></td>
<td>a <a class="link" href="GtkMenuBar.html" title="GtkMenuBar"><span class="type">GtkMenuBar</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>child</code></em> :</span></p></td>
<td>the <a class="link" href="GtkMenuItem.html" title="GtkMenuItem"><span class="type">GtkMenuItem</span></a> to add
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="gtk-menu-bar-prepend"></a><h3>gtk_menu_bar_prepend()</h3>
<pre class="programlisting">#define gtk_menu_bar_prepend(menu,child)    gtk_menu_shell_prepend ((GtkMenuShell *)(menu),(child))
</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">gtk_menu_bar_prepend</code> is deprecated and should not be used in newly-written code. Use <a class="link" href="GtkMenuShell.html#gtk-menu-shell-prepend" title="gtk_menu_shell_prepend ()"><code class="function">gtk_menu_shell_prepend()</code></a> instead.</p>
</div>
<p>
Adds a new <a class="link" href="GtkMenuItem.html" title="GtkMenuItem"><span class="type">GtkMenuItem</span></a> to the beginning of the GtkMenuBar
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>menu</code></em> :</span></p></td>
<td>a <a class="link" href="GtkMenuBar.html" title="GtkMenuBar"><span class="type">GtkMenuBar</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>child</code></em> :</span></p></td>
<td>the <a class="link" href="GtkMenuItem.html" title="GtkMenuItem"><span class="type">GtkMenuItem</span></a> to add
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="gtk-menu-bar-insert"></a><h3>gtk_menu_bar_insert()</h3>
<pre class="programlisting">#define gtk_menu_bar_insert(menu,child,pos) gtk_menu_shell_insert ((GtkMenuShell *)(menu),(child),(pos))
</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">gtk_menu_bar_insert</code> is deprecated and should not be used in newly-written code. Use <a class="link" href="GtkMenuShell.html#gtk-menu-shell-insert" title="gtk_menu_shell_insert ()"><code class="function">gtk_menu_shell_insert()</code></a> instead.</p>
</div>
<p>
Adds a new <a class="link" href="GtkMenuItem.html" title="GtkMenuItem"><span class="type">GtkMenuItem</span></a> to the GtkMenuBar at the position defined by <em class="parameter"><code>position</code></em>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>menu</code></em> :</span></p></td>
<td>a <a class="link" href="GtkMenuBar.html" title="GtkMenuBar"><span class="type">GtkMenuBar</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>child</code></em> :</span></p></td>
<td>the <a class="link" href="GtkMenuItem.html" title="GtkMenuItem"><span class="type">GtkMenuItem</span></a> to add
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>pos</code></em> :</span></p></td>
<td>the position in the item list where the <em class="parameter"><code>child</code></em> is added.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="GtkPackDirection"></a><h3>enum GtkPackDirection</h3>
<pre class="programlisting">typedef enum
{
  GTK_PACK_DIRECTION_LTR,
  GTK_PACK_DIRECTION_RTL,
  GTK_PACK_DIRECTION_TTB,
  GTK_PACK_DIRECTION_BTT
} GtkPackDirection;
</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="gtk-menu-bar-set-pack-direction"></a><h3>gtk_menu_bar_set_pack_direction ()</h3>
<pre class="programlisting">void                gtk_menu_bar_set_pack_direction     (<a class="link" href="GtkMenuBar.html" title="GtkMenuBar">GtkMenuBar</a> *menubar,
                                                         <a class="link" href="GtkMenuBar.html#GtkPackDirection" title="enum GtkPackDirection">GtkPackDirection</a> pack_dir);</pre>
<p>
Sets how items should be packed inside a menubar.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>menubar</code></em> :</span></p></td>
<td> a <a class="link" href="GtkMenuBar.html" title="GtkMenuBar"><span class="type">GtkMenuBar</span></a>.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>pack_dir</code></em> :</span></p></td>
<td> a new <a class="link" href="GtkMenuBar.html#GtkPackDirection" title="enum GtkPackDirection"><span class="type">GtkPackDirection</span></a>.
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.8</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="gtk-menu-bar-get-pack-direction"></a><h3>gtk_menu_bar_get_pack_direction ()</h3>
<pre class="programlisting"><a class="link" href="GtkMenuBar.html#GtkPackDirection" title="enum GtkPackDirection">GtkPackDirection</a>    gtk_menu_bar_get_pack_direction     (<a class="link" href="GtkMenuBar.html" title="GtkMenuBar">GtkMenuBar</a> *menubar);</pre>
<p>
Retrieves the current pack direction of the menubar. See
<a class="link" href="GtkMenuBar.html#gtk-menu-bar-set-pack-direction" title="gtk_menu_bar_set_pack_direction ()"><code class="function">gtk_menu_bar_set_pack_direction()</code></a>.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>menubar</code></em> :</span></p></td>
<td> a <a class="link" href="GtkMenuBar.html" title="GtkMenuBar"><span class="type">GtkMenuBar</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> the pack direction

</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.8</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="gtk-menu-bar-set-child-pack-direction"></a><h3>gtk_menu_bar_set_child_pack_direction ()</h3>
<pre class="programlisting">void                gtk_menu_bar_set_child_pack_direction
                                                        (<a class="link" href="GtkMenuBar.html" title="GtkMenuBar">GtkMenuBar</a> *menubar,
                                                         <a class="link" href="GtkMenuBar.html#GtkPackDirection" title="enum GtkPackDirection">GtkPackDirection</a> child_pack_dir);</pre>
<p>
Sets how widgets should be packed inside the children of a menubar.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>menubar</code></em> :</span></p></td>
<td> a <a class="link" href="GtkMenuBar.html" title="GtkMenuBar"><span class="type">GtkMenuBar</span></a>.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>child_pack_dir</code></em> :</span></p></td>
<td> a new <a class="link" href="GtkMenuBar.html#GtkPackDirection" title="enum GtkPackDirection"><span class="type">GtkPackDirection</span></a>.
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.8</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="gtk-menu-bar-get-child-pack-direction"></a><h3>gtk_menu_bar_get_child_pack_direction ()</h3>
<pre class="programlisting"><a class="link" href="GtkMenuBar.html#GtkPackDirection" title="enum GtkPackDirection">GtkPackDirection</a>    gtk_menu_bar_get_child_pack_direction
                                                        (<a class="link" href="GtkMenuBar.html" title="GtkMenuBar">GtkMenuBar</a> *menubar);</pre>
<p>
Retrieves the current child pack direction of the menubar. See
<a class="link" href="GtkMenuBar.html#gtk-menu-bar-set-child-pack-direction" title="gtk_menu_bar_set_child_pack_direction ()"><code class="function">gtk_menu_bar_set_child_pack_direction()</code></a>.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>menubar</code></em> :</span></p></td>
<td> a <a class="link" href="GtkMenuBar.html" title="GtkMenuBar"><span class="type">GtkMenuBar</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> the child pack direction

</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.8</p>
</div>
</div>
<div class="refsect1" lang="en">
<a name="GtkMenuBar.property-details"></a><h2>Property Details</h2>
<div class="refsect2" lang="en">
<a name="GtkMenuBar--child-pack-direction"></a><h3>The <code class="literal">"child-pack-direction"</code> property</h3>
<pre class="programlisting">  "child-pack-direction"     <a class="link" href="GtkMenuBar.html#GtkPackDirection" title="enum GtkPackDirection">GtkPackDirection</a>      : Read / Write</pre>
<p>
The pack direction of the menubar. It determines how
the widgets contained in child menuitems are arranged.</p>
<p>
</p>
<p>Default value: GTK_PACK_DIRECTION_LTR</p>
<p>Since 2.8</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="GtkMenuBar--pack-direction"></a><h3>The <code class="literal">"pack-direction"</code> property</h3>
<pre class="programlisting">  "pack-direction"           <a class="link" href="GtkMenuBar.html#GtkPackDirection" title="enum GtkPackDirection">GtkPackDirection</a>      : Read / Write</pre>
<p>
The pack direction of the menubar. It determines how
menuitems are arranged in the menubar.</p>
<p>
</p>
<p>Default value: GTK_PACK_DIRECTION_LTR</p>
<p>Since 2.8</p>
</div>
</div>
<div class="refsect1" lang="en">
<a name="GtkMenuBar.style-property-details"></a><h2>Style Property Details</h2>
<div class="refsect2" lang="en">
<a name="GtkMenuBar--s-internal-padding"></a><h3>The <code class="literal">"internal-padding"</code> style property</h3>
<pre class="programlisting">  "internal-padding"         <a
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
>gint</a>                  : Read</pre>
<p>Amount of border space between the menubar shadow and the menu items.</p>
<p>Allowed values: &gt;= 0</p>
<p>Default value: 1</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="GtkMenuBar--s-shadow-type"></a><h3>The <code class="literal">"shadow-type"</code> style property</h3>
<pre class="programlisting">  "shadow-type"              <a class="link" href="gtk-Standard-Enumerations.html#GtkShadowType" title="enum GtkShadowType">GtkShadowType</a>         : Read</pre>
<p>Style of bevel around the menubar.</p>
<p>Default value: GTK_SHADOW_OUT</p>
</div>
</div>
<div class="refsect1" lang="en">
<a name="GtkMenuBar.see-also"></a><h2>See Also</h2>
<p>
<a class="link" href="GtkMenuShell.html" title="GtkMenuShell"><span class="type">GtkMenuShell</span></a>, <a class="link" href="GtkMenu.html" title="GtkMenu"><span class="type">GtkMenu</span></a>, <a class="link" href="GtkMenuItem.html" title="GtkMenuItem"><span class="type">GtkMenuItem</span></a>
</p>
</div>
</div>
<div class="footer">
<hr>
          Generated by GTK-Doc V1.11</div>
</body>
</html>
